﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LeftMenu.ascx.cs" Inherits="Shop.Web.Controls.LeftMenu" %>
<asp:Repeater runat="server" ID="rprMenu">
<HeaderTemplate>
    
</HeaderTemplate>
<ItemTemplate>
    <div class="<%# DataBinder.Eval(Container.DataItem, "Key") == "Бренды" ? "yellow" : "blue"%>">
    <h1><%# DataBinder.Eval(Container.DataItem, "Key") %></h1>
    <ul>
    <asp:Repeater DataSource='<%# DataBinder.Eval(Container.DataItem, "Value")%>' runat="server" ID="rprSubMenu">
        <ItemTemplate>
            <li>
                <a href='Catalog.aspx?<%# DataBinder.Eval(Container, "DataItem.Seo")%>&<%# DataBinder.Eval(Container, "DataItem.Query")%>=<%# DataBinder.Eval(Container, "DataItem.Id")%>'><%# DataBinder.Eval(Container, "DataItem.Name")%></a>
            </li>
        </ItemTemplate>
    </asp:Repeater>
    </ul>
    </div>
</ItemTemplate>
<FooterTemplate></FooterTemplate>
</asp:Repeater>